package com.fsy.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName userchecks
 */
@TableName(value ="userchecks")
@Data
public class Userchecks implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "userId")
    private Integer userId;

    /**
     * 
     */
    @TableField(value = "userName")
    private String userName;

    /**
     * 签到时间（创建时间）
     */
    @TableField(value = "checkInTime")
    private Date checkInTime;

    /**
     * 签退时间
     */
    @TableField(value = "checkOutTime")
    private Date checkOutTime;

    /**
     * 状态1-已签到 2-已签退
     */
    @TableField(value = "checkState")
    private Integer checkState;

    /**
     * 签到天数 今天 -1 所有记录 -2 7天前 -3 本月 -4
     */
    @TableField(exist = false)
    private Integer numberDays;

    @TableField(exist = false)  //非数据库字段加
    private int page;

    @TableField(exist = false)  //非数据库字段加
    private int limit;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}